package com.demo.provider2.controller;

import com.demo.provider2.mapper.Provider2Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.nio.file.ProviderMismatchException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xiaoxiangjie
 * @Description:
 * @Date: 2021/3/21
 */
@RestController
@RequestMapping("provider2Controller")
public class Provider2Controller {


    @Autowired
    private Provider2Mapper mapper;

    @GetMapping("/getBookInfo")
    public Integer getBookInfo(@RequestParam String name) {


        return mapper.getBookInfo(name);


    }
}
